package com.cheyun.netsalev3.bean.orderquanyi

import android.view.View
import java.io.Serializable


data class OrderquanyiDetail(
        val id: Int,
        var award_num: String,
        var award_name:String,
        var award_state_key:String,
        var award_state_name:String,
        var award_act_key:String,
        var award_act_name:String,
        var award_type_key:String,
        var award_type_name:String,
        var award_number:Int,
        var award_amount:String,
        var check_uid:Int,
        var check_dealer:Int,
        var check_time:String,
        var award_end_time:String,
        var adorderid:Int,
        var award_check:String,
        var ismax:Int,
        var mini:Int,
        var uname:String,
        var phone:String,
        var seriesname:String,
        var check_uid_name:String,
        var check_dealer_name:String,
        var infoplacename:String,
        var infosourcename:String,
        var signing_date:String

): Serializable{
    fun award_number_name():String{
        return this.award_number.toString()
    }

    fun ismax_name():String{
        if(this.ismax > 0){
            return "是"
        }
        return "否"
    }

    fun mini_name():String{
        if(this.mini > 0){
            return "是"
        }
        return "否"
    }

    fun visibleOfCheckInfo():Int{
        if(this.award_state_key == "3"){
            return View.VISIBLE
        }
        return View.GONE
    }
}

